package base2dev.core.model;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;

import org.hibernate.annotations.CollectionOfElements;

import base2dev.core.model.imp.EntityBase;


@Entity
public class TheUser extends EntityBase<TheUser>   {

	private static final long serialVersionUID = -8659304638040426296L;
	private String UserName;
	private String Password;
	@CollectionOfElements 
	private List<String> mails = new ArrayList<String>();

	
	public void setUserName(String userName) {
		UserName = userName;
	}

	public String getUserName() {
		return UserName;
	}

	public void setPassword(String password) {
		Password = password;
	}

	public String getPassword() {
		return Password;
	}

	public void setMails(List<String> mails) {
		this.mails = mails;
	}

	public List<String> getMails() {
		return mails;
	}

	public TheUser addMail(String string) {
		getMails().add(string);
		return this; 
	}
}
